<?php
//print_r($lclientinbus);
//echo"---------------------------------";
//PRINT_R($lgroup);
//print_r($idtour);
//print_r($idbus);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url() ?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url() ?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url() ?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url() ?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url() ?>css/style.css" />
 <link rel="stylesheet" href="<?php echo base_url() ?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js/scripts.js"></script>
 <script type="text/javascript" src="<?php echo base_url() ?>js/jquery.validate.js"></script>
<script>
	$(function(){
	});
</script>
</head>

<body>
	<div class="principal container_24" style="width:1334px">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo base_url() ?>img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url() ?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24" style="width:1334px">
			<a class="yearlist " href="index.php?liste/listtour">Back to List </a>
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				description
				<br/>
				<h3><?php // echo $message;?></h3>
			</div>
			
				<div class="grid_24 listcontent detail">
				<h1>List Coupon</h1>
				
				<div class="grid_24 top">
								
					
			<div class="grid_24 detaillist datagrid" style="width:1334px">
				<table>
				
				<thead><tr><th>No.</th><th>COUPON NAME</th><th>COUPON CODE</th><th>COUPON DESCRIPTION</th><th>COUPON TYPE</th><th>COUPON MONTANT</th><th>Period</th><th>ACTIVIE?</th><th>ACTIONS</th></tr></thead>
				<?php foreach ($listcoupon as $lcp){?>
				<tr>
				<td><?php echo $lcp["idcoupn"]?></td><td><?php echo $lcp["coupon_name"]?></td><td><?php echo $lcp["coupon_code"]?></td><td><?php echo $lcp["coupon_desc"]?></td><td><?php echo $lcp["coupon_type"]?></td>
				<td><?php echo $lcp["coupon_reduce"]?></td><td>start:<?php echo $lcp["coupon_start"]?><br/> to <?php echo $lcp["coupon_end"]?> </td><td><?php echo $lcp["active"]?></td>
				<td>
				<form method="post" action="<?php echo base_url()."index.php?ccoupon/editcoupon"?>">
				<input name="idcoupn" type="hidden" value="<?php echo $lcp["idcoupn"]?>" />
				<input name="submit" type="submit" value="edit">
				</form>
				<form action="<?php echo base_url()."index.php?ccoupon/desactivecoupon"?>" method="post" >
				<input name="idcoupn" type="hidden" value="<?php echo $lcp["idcoupn"]?>" />
				<input name="submit" type="submit" value="desative">
				</form>
				
				</td>
				</tr>
				<?php }?>
				<tbody>
					
				
					
					
				</tbody>
			</table></div>
			<a href="index.php?ccoupon/createnewcoupon">Create New Coupon</a>
		</div>
		
	</div><!--end principal-->
</body>
</html>